{% extends "base.html" %}
{% block title %}
    天天生鲜
{% endblock %}

{% block content %}
      <!--添加商品按钮-->
    <div class="row">
        <button class="btn btn-primary col-lg-2 ml-auto" data-toggle="modal" data-target="#goods_modal">添加商品</button>
    </div>
    <h1></h1>
      <!--商品列表-->
    <div class="row">
      <table class="table">
          <thead>
            <tr>
                <th>商品编号</th>
                <th>商品名称</th>
                <th>商品类型</th>
                <th>商品价格</th>
                <th>商品数量</th>
            </tr>
          </thead>
          <tbody>
          {% for goods in goods_list %}
            <tr>
                <td>{{ goods.good_id }}</td>
                <td>
                    <a href="#">{{ goods.goods_name }}</a>
                </td>
                <td>{{ goods.goods_type }}</td>
                <td>{{ goods.goods_price }}</td>
                <td>{{ goods.goods_num }}</td>
            </tr>
          {% endfor %}
          </tbody>
      </table>
    </div>
    <h1></h1>
      <!--分页-->
    <div class="row">
        <ul class="pagination ml-auto">
            <li class="page-item">
                <a class="page-link">上一页</a>
            </li>
            <li class="page-item">
                <a class="page-link">1</a>
            </li>
            <li class="page-item">
                <a class="page-link">2</a>
            </li>
                                <li class="page-item">
                <a class="page-link">3</a>
            </li>
            <li class="page-item">
                <a class="page-link">4</a>
            </li>
            <li class="page-item">
                <a class="page-link">下一页</a>
            </li>
        </ul>
    </div>
{% endblock %}

